package com.example.commuinte_backed.model.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

@Data
public class ChangePasswordDTO {

    @NotEmpty(message = "请输入原始密码")
    @Length(min = 6, max = 20, message = "长度在6-20")
    private String usedPass;

    @NotEmpty(message = "请输入修改密码")
    @Length(min = 6, max = 20, message = "长度在6-20")
    private String pass;

    @NotEmpty(message = "请再次输入密码")
    @Length(min = 6, max = 20, message = "长度在6-20")
    private String checkPass;
}
